package com.ccys.app.controller;

import com.ccys.app.service.DependantService;
import com.ccys.common.vo.ResponseResultApp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: WhiteCoat
 * @description: 关系接口
 * @author: ZhangJingCan
 * @create: 2024-01-31 17:53
 **/

@RestController
@Api(tags = "关系接口")
@RequestMapping("dependant")
public class DependantController {

    @Autowired
    private DependantService dependantService;

    @ApiOperation("删除关系")
    @DeleteMapping(value = "/RemoveDependant")
    public ResponseResultApp removeDependant(String family_id) {
        return dependantService.removeDependant(family_id);
    }

}
